Terminal device control method and terminal device

ABSTRACT

Embodiments of the present invention provide a terminal device control method and a terminal device. The method includes: when a bending behavior of a flexible display occurs, determining a bending parameter of the flexible display, where the bending parameter includes at least one of a bending time parameter, a bending location parameter, a bending direction parameter, and a bending degree parameter; and adjusting a user interface (UI) of the flexible display based on the bending parameter, or generating, based on the bending parameter, a command corresponding to a first application. According to the method provided in the embodiments of the present invention, the bending behavior of the flexible display is abstracted as the bending parameter, and the bending parameter is used as input of the application. This manner can effectively improve user experience.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a National Stage of International Application No.PCT/CN2017/075546, filed on Mar. 3, 2017, which claims priority toChinese Patent Application No. 201611084566.2, filed on Nov. 30, 2016.Both of the aforementioned applications are hereby incorporated byreference in their entireties.

TECHNICAL FIELD

Embodiments of the present invention relate to the communications field,and more specifically, to a terminal device control method and aterminal device.

BACKGROUND

A flexible display has special attributes such as flexibility andelasticity, and brings new experience to display. Currently, theflexible display is increasingly widely concerned and used. Someflexible handheld devices gradually enter the industry.

The prior art shows in detail how to construct a flexible display deviceand even a display apparatus and solution in which a flexible displayand a rigid display are combined.

However, the prior art focuses on how to perform some new display basedon a flexible display, but there is no better improvement in controllinga terminal device that is equipped with a flexible display, for example,human computer interaction.

SUMMARY

Embodiments of the present invention provide a terminal device controlmethod and a terminal device, to effectively improve user experience.

According to a first aspect, a terminal device control method isprovided, and the method includes:

when a bending behavior of a flexible display occurs, determining abending parameter of the flexible display, where the bending parameterincludes at least one of a bending time parameter, a bending locationparameter, a bending direction parameter, and a bending degreeparameter, the bending time parameter is used to indicate a time atwhich the bending behavior of the flexible display occurs, the bendinglocation parameter is used to indicate a location at which the bendingbehavior of the flexible display occurs, the bending direction parameteris used to indicate a direction in which the bending behavior of theflexible display occurs, and the bending degree parameter is used toindicate a degree of the bending behavior of the flexible display; and

adjusting a user interface (UI) of the flexible display based on thebending parameter, or generating, based on the bending parameter, acommand corresponding to a first application.

According to the method provided in the embodiments of the presentinvention, the bending behavior of the flexible display is abstracted asthe bending parameter, and the bending parameter is used as input of theapplication. This manner can effectively improve user experience.

In some possible designs, the adjusting a user interface (UI) of theflexible display based on the bending parameter includes: if it isdetermined, based on the bending parameter, that a UI at a firstlocation of the flexible display is in an extruded state or in astretched state, adjusting configuration information of the UI at thefirst location based on a distance parameter, where the distanceparameter indicates a distance between the first location and thebending location of the flexible display.

In the embodiments of the present invention, the terminal device adjuststhe configuration information of the UI, and when the bending behaviorof the flexible display occurs, content deformation and extrusion nearthe bending location of the flexible display can be avoided, to ensure avisual effect.

In addition, after the bending behavior occurs, a sight line of humaneyes is not perpendicular to a part of the display, and differentdisplays have different visual angles. In the embodiments of the presentinvention, the configuration information of the UI is adjusted, so thata user obtains a natural visual effect regardless of a display locationat which the user looks, and user experience is effectively improved.

In some possible designs, the adjusting a user interface (UI) of theflexible display based on the bending parameter includes:

presenting the UI based on the bending parameter and first mappingrelationship information, where the first mapping relationshipinformation includes a correspondence between a plurality of bendingparameters and a plurality of UIs.

In some possible designs, the first mapping relationship informationincludes a correspondence between a plurality of bending directionparameters and a plurality of UIs, and the presenting the UI based onthe bending parameter and first mapping relationship informationincludes:

presenting the UI based on the bending direction parameter and the firstmapping relationship.

In some possible designs, before the generating, based on the bendingparameter, a command corresponding to a first application, the methodfurther includes:

sending the bending parameter to at least one application, where the atleast one application includes the first application; and thegenerating, based on the bending parameter, a command corresponding to afirst application includes:

generating, based on the bending parameter and a second mappingrelationship, the command corresponding to the first application.

In some possible designs, the second mapping relationship includes acorrespondence between a plurality of bending parameters and a pluralityof applications, and the generating, based on the bending parameter, acommand corresponding to a first application includes:

generating a triggering command of the first application based on thebending parameter and the second mapping relationship information.

In some possible designs, the second mapping relationship includes acorrespondence between a plurality of bending parameters and a pluralityof commands of the first application, and the generating, based on thebending parameter, a command corresponding to a first applicationincludes:

generating, based on the bending parameter and the second mappingrelationship information, a first command corresponding to the firstapplication.

In some possible designs, before the determining a bending parameter ofthe flexible display, the method further includes:

obtaining force distribution information of the flexible display and/orcapacitance distribution information of the flexible display; and thedetermining a bending parameter of the flexible display includes:

determining the bending parameter based on the force distributioninformation and/or the capacitance distribution information.

In some possible designs, the determining a bending parameter of theflexible display includes:

measuring a relative location between a first rigid display and a secondrigid display by using a first sensor, where the flexible display islocated between the first rigid display and the second rigid display,and hardness of each rigid display is greater than hardness of theflexible display; and determining the bending parameter based on therelative location.

In some possible designs, the obtaining force distribution informationof the flexible display and/or capacitance distribution information ofthe flexible display includes: determining the force distributioninformation by measuring a physical circuit of the flexible display, ordetermining the force distribution information by using a force sensor.

In some possible designs, the obtaining force distribution informationof the flexible display and/or capacitance distribution information ofthe flexible display includes: determining the capacitance valuedistribution information by using a capacitor.

According to a second aspect, a terminal device is provided, and theterminal device includes:

a determining unit, configured to: when a bending behavior of a flexibledisplay occurs, determine a bending parameter of the flexible display,where the bending parameter includes at least one of a bending timeparameter, a bending location parameter, a bending direction parameter,and a bending degree parameter, the bending time parameter is used toindicate a time at which the bending behavior of the flexible displayoccurs, the bending location parameter is used to indicate a location atwhich the bending behavior of the flexible display occurs, the bendingdirection parameter is used to indicate a direction in which the bendingbehavior of the flexible display occurs, and the bending degreeparameter is used to indicate a degree of the bending behavior of theflexible display; and

a processing unit, configured to: adjust a user interface (UI) of theflexible display based on the bending parameter, or generate, based onthe bending parameter, a command corresponding to a first application.

According to a third aspect, a terminal device is provided, and theterminal device includes a processor. The processor is specificallyconfigured to:

when a bending behavior of a flexible display occurs, determine abending parameter of the flexible display, where the bending parameterincludes at least one of a bending time parameter, a bending locationparameter, a bending direction parameter, and a bending degreeparameter, the bending time parameter is used to indicate a time atwhich the bending behavior of the flexible display occurs, the bendinglocation parameter is used to indicate a location at which the bendingbehavior of the flexible display occurs, the bending direction parameteris used to indicate a direction in which the bending behavior of theflexible display occurs, and the bending degree parameter is used toindicate a degree of the bending behavior of the flexible display; and

adjust a user interface (UI) of the flexible display based on thebending parameter, or generate, based on the bending parameter, acommand corresponding to a first application.

It should be noted that the terminal devices in the second aspect andthe third aspect can implement/perform the method embodiment in thefirst aspect.

According to a fourth aspect, a processor is provided, and the processoris configured to:

when a bending behavior of a flexible display occurs, determine abending parameter of the flexible display, where the bending parameterincludes at least one of a bending time parameter, a bending locationparameter, a bending direction parameter, and a bending degreeparameter, the bending time parameter is used to indicate a time atwhich the bending behavior of the flexible display occurs, the bendinglocation parameter is used to indicate a location at which the bendingbehavior of the flexible display occurs, the bending direction parameteris used to indicate a direction in which the bending behavior of theflexible display occurs, and the bending degree parameter is used toindicate a degree of the bending behavior of the flexible display; and

adjust a user interface (UI) of the flexible display based on thebending parameter, or generate, based on the bending parameter, acommand corresponding to a first application.

It should be noted that the processor in the fourth aspect canimplement/perform the method embodiment in the first aspect.

According to a fifth aspect, a storage medium is provided, and thestorage medium is configured to store a bending parameter of a flexibledisplay, where the bending parameter includes at least one of a bendingtime parameter, a bending location parameter, a bending directionparameter, and a bending degree parameter.

In some possible designs, the storage medium is further configured tostore a command corresponding to a first application.

With reference to the foregoing aspects, in some possible designs, thefirst application is a game application.

With reference to the foregoing aspects, in some possible designs, thefirst sensor is an optical sensor, or the first sensor is a distancesensor.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic flowchart of a terminal device control methodaccording to an embodiment of the present invention:

FIG. 2 is a schematic block diagram of a bending parameter according toan embodiment of the present invention;

FIG. 3 is another schematic flowchart of a terminal device controlmethod according to an embodiment of the present invention;

FIG. 4 is a schematic block diagram of a terminal device according to anembodiment of the present invention; and

FIG. 5 is another schematic block diagram of a terminal device accordingto an embodiment of the present invention.

DESCRIPTION OF EMBODIMENTS

A terminal device control method in the embodiments of the presentinvention is applicable to any terminal device that is equipped with aflexible display. The flexible display may implement a specific degreeof flexible folding. For example, the flexible display may be a displayapparatus including only a flexible display, or a display apparatusincluding a combination of a flexible display and a rigid display.Hardness of the rigid display is greater than hardness of the flexibledisplay.

The following describes the terminal device control method and aterminal device in the embodiments of the present invention withreference to accompanying drawings.

FIG. 1 is a schematic flowchart of a terminal device control method 100according to an embodiment of the present invention. The method 100 maybe performed by a terminal device, or may be performed by a processor ofthe terminal device. For ease of description, the following performsdescription by using an example in which the terminal device is anexecution body.

110. When a bending behavior of a flexible display occurs, determine abending parameter of the flexible display.

Specifically, a user may make one or more bending behaviors of theflexible display by using a physical operation. When the bendingbehavior of the flexible display occurs, the terminal device determinesthe bending parameter of the flexible display.

In this embodiment of the present invention, the bending parameter mayinclude at least one of a bending time parameter, a bending locationparameter, a bending direction parameter, and a bending degreeparameter. The bending time parameter is used to indicate a time atwhich the bending behavior of the flexible display occurs, the bendinglocation parameter is used to indicate a location at which the bendingbehavior of the flexible display occurs, the bending direction parameteris used to indicate a direction in which the bending behavior of theflexible display occurs, and the bending degree parameter is used toindicate a degree of the bending behavior of the flexible display. Thebending parameter may be parameters in various forms or variousparameters that are used to indicate the bending behavior.

For example, the bending time parameter may be a recorded time at whichthe bending behavior of the flexible display occurs, for example,00:00:00 on Jan. 1, 2017.

For another example, as shown in FIG. 2, the bending location parameteris described by using a plane rectangular coordinate system. Optionally,the bending location parameter may be represented by using a bendingcenter and/or a bending axis. The bending center is a most convexlocation or a most concave location on the flexible display when thebending behavior of the flexible display occurs. The bending axis is awaveform curve generated on the flexible display when the bendingbehavior of the flexible display occurs. In this embodiment of thepresent invention, a line including points whose curvature is zero onthe waveform curve is defined as the bending axis. The bending axis mayalso be referred to as a bump axis.

Specifically, when the bending behavior of the flexible display does notoccur, coordinates (x, y) are used to indicate locations on the flexibledisplay. When the bending behavior of the flexible display occurs,coordinates corresponding to the most concave location or the mostconvex location or coordinates corresponding to the most convex locationare used as the bending location parameter, for example, (2, 3).Alternatively, a straight line or a curve including points whosecurvature is zero is used as the bending location parameter, forexample, x=1, or y=4x.

For another example, the bending location parameter of the flexibledisplay may be described with reference to the coordinates of the mostconcave location or the coordinates of the most convex location and thebending axis.

It should be noted that each bending behavior of the flexible displayhas a direction. In one direction, the flexible display is bent towardsa display surface, and in another possible direction, the flexibledisplay is bent towards a non-display surface. Bending towards thedisplay surface may also be referred to as inward bending. Thisindicates that the display surface of the flexible display is in aconcave shape. Bending towards the non-display surface may also bereferred to as outward bending. This indicates that the display surfaceof the flexible display is in a convex shape.

Optionally, in this embodiment of the present invention, the bendingdirection parameter may be identified by using a numerical value. Forexample, the bending towards the display surface may be specificallyrepresented by using 0, and the bending towards the non-display surfacemay be specifically represented by using 1.

It should be further noted that the bending degree parameter in thisembodiment of the present invention is used to indicate a bending degreeof the flexible display when the bending behavior of the flexibledisplay occurs, and is used to indicate strength of force currentlyapplied on the flexible display by a user or another device. Optionally,a floating point or an integer value may be used to represent a value ofthe strength. A larger absolute value of the value indicates a higherdegree of bending, for example, 80, 28, 93, or 200.

It should be understood that the bending parameters in this embodimentof the present invention may be in another form or may be combined witheach other for description, provided that the terminal device canidentify the bending parameters. This is not specifically limited inthis embodiment of the present invention.

For example, the bending degree parameter and the bending directionparameter may be combined for description. Optionally, a positive numberor a negative number may be used to represent a bending direction and abending degree. For example, −200 indicates that a degree of bendingtowards the non-display surface is 200, and 101 indicates that a degreeof bending towards the display surface is 101.

An example of a parameter existing when the bending behavior of theflexible display occurs is described above by using the bending locationparameter, the bending direction parameter, and the bending degreeparameter. This is not specifically limited in this embodiment of thepresent invention.

The following describes specific implementations of obtaining thebending parameters.

In an embodiment, the terminal device is equipped wvith only theflexible display.

Optionally, force distribution information of the flexible display isdetermined, and the bending parameter is determined based on the forcedistribution information.

Specifically, the force distribution information is determined bymeasuring a physical circuit of the flexible display, or the forcedistribution information is determined by using a force sensor. Forexample, when it is determined, through measurement by using the forcesensor, that a location corresponding to coordinates (2, 3) on theflexible display bears maximum force, and a force value is 20 Newton(N), the bending location parameter of the flexible display isdetermined as (2, 3), and the bending degree parameter of the flexibledisplay is determined as 20 (N).

Optionally, capacitance distribution information of the flexible displayis determined, and the bending parameter is determined based on thecapacitance distribution information. Specifically, in an electronicline or an electric appliance line, capacitance not only exists in acapacitor, but also exists between any two power-on conductors. Forexample, capacitance exists between power transmission lines, between atransmission line and the ground, between pins of a transistor, andbetween elements. In this embodiment of the present invention,distribution of the capacitance is referred to as capacitancedistribution information. When the bending behavior of the flexibledisplay occurs, capacitance distribution at a bending part is denser,and a capacitance value of the bending part is more regular comparedwith that of another area. The terminal device determines the bendingparameter based on the capacitance distribution information existingwhen the bending behavior of the flexible display occurs.

For example, the capacitance value distribution information isdetermined by using a capacitor. Specifically, according to theinformation obtained through measurement by using the capacitor,coordinates of a location or an axis at which capacitance valuedistribution is densest is determined as the bending location parameter.

For example, when the bending behavior of the flexible display does notoccur, a coordinate system of the flexible display is determined byusing a center point of the flexible display as an origin, using ahorizontal as an x-axis, and using a vertical as a y-axis. When thebending behavior of the flexible display occurs, and the terminal devicedetermines, by using the capacitor, that capacitance value distributionat a location corresponding to x=4 is densest, the bending locationparameter is determined as x=4.

In another embodiment, the terminal device is equipped with the flexibledisplay and a rigid display.

Optionally, a relative location between a first rigid display and asecond rigid display is measured by using a first sensor, the flexibledisplay is located between the first rigid display and the second rigiddisplay, and hardness of each rigid display is greater than hardness ofthe flexible display; and the bending parameter is determined based onthe relative location.

It should be understood that the first sensor may be an optical sensor,or may be a distance sensor. Alternatively, the first sensor may beanother sensor that can detect a distance. It should be furtherunderstood that the terminal device in this embodiment of the presentinvention may be equipped with a plurality of rigid displays.

It should be further understood that the foregoing embodiment ofdetermining the bending parameter is merely an example. This embodimentof the present invention is not limited thereto. For example, theterminal device may alternatively flexibly obtain the bending parameterbased on physical implementation of the flexible display.

120. Adjust a user interface (User Interface. UI) of the flexibledisplay based on the bending parameter, or generate, based on thebending parameter, a command corresponding to a first application.

Specifically, the terminal device adjusts the UI of the flexible displaybased on the bending parameter abstracted from the bending behavior, orgenerates, based on the bending parameter, the command corresponding tothe first application.

It should be noted that an intelligent operating system such as anAndroid intelligent operating system performs page rendering andgeneration based on system resolution, a size of a UI layer, a locationof the UI layer, and a resource in the UI layer.

In an embodiment, when the bending behavior of the flexible displayoccurs, to ensure UI quality and improve user experience, the bendingparameter may be used as one of bases for generating page content.

In other words, after the user performs the physical operation on theflexible display, the terminal device can adjust the user interfacebased on the obtained bending parameter.

For example, when the user bends the display towards the displaysurface, a display element near a location of the bending axis may beappropriately adjusted, so that the display element has a pantoscopicvisual effect similar to that of a curved display, instead ofmaintaining an original layout of a straight display, where the originallayout causes content deformation and extrusion near the bending axis.

Similarly, after the bending behavior occurs, a sight line of human eyesis not perpendicular to a part of the display, and different displayshave different visual angles. Therefore, some intelligent renderingadjustments may be performed, so that the user obtains a natural visualeffect regardless of a display location at which the user looks.

Optionally, in this embodiment of the present invention, if it isdetermined, based on the bending parameter, that a UI at a firstlocation of the flexible display is in an extruded state or in astretched state, configuration information of the UI at the firstlocation is adjusted based on a distance parameter. The distanceparameter is a distance between the first location and the bendinglocation of the flexible display.

For example, if it is determined, based on the bending parameter, thatcontent displayed at the bending location is extruded, content closer tothe bending axis is extruded severer, and content farther away from thebending axis has greater visual deviation.

assuming that a distance between the first location and the bending axisis d, an adjustment degree of a display element in the configurationinformation of the UI is inversely proportional to d. An adjustmentdirection is appropriate dispersion, to compensate for a visualextrusion effect, and implement a better circular-screen visual effect.An adjustment degree of a rendering element in the configurationinformation of the UI is proportional to d. Angle of view adjustment anddegree of inclination adjustment are performed on the rendering element,to implement a better effect. The terminal device may specificallyadjust an angle of view and a degree of inclination of the renderingelement.

For example, the adjustment degree of the display element in theconfiguration information of the UI may be adjusted based on a formulay=−(1/d) where y is the adjustment degree of the display element in theconfiguration information of the UI, d is the distance between the firstlocation and the bending axis, and a symbol “−” indicates that theadjustment direction is appropriate dispersion.

From a perspective of the user, the user performs a physical operationof bending the flexible display towards the display surface, in otherwords, the display surface of the flexible display is relatively bent,displayed content is in the extruded state on the flexible display,content closer to the bending axis is extruded severer, and contentfarther away from the bending axis has greater visual deviation.

In this embodiment of the present invention, the physical operation ofthe user is quantized by using the bending parameter, and the bendingparameter is used as a reference for adjusting the configurationinformation of the UI. Specifically, if the bending location of theflexible display is determined as coordinates (0, 0) of an origin, thecoordinates of the origin are used as a center, and an adjustment degreeof a display element in the configuration information of the UI atcoordinates (x, y) is inversely proportional to a distance between thecoordinates (x, y) and the coordinates (0, 0). Therefore, even if theuser performs the physical operation of bending the flexible display,the user obtains a natural visual effect regardless of a displaylocation at which the user looks.

For another example, if it is determined, based on the bendingparameter, that content displayed at the bending location is dispersed,content closer to the bending axis is dispersed severer, and contentfarther away from the bending axis has greater visual deviation,

assuming that a distance between the first location and the bending axisis d, an adjustment degree of a display element in the configurationinformation of the UI is inversely proportional to d. An adjustmentdirection is appropriate extrusion, to compensate for a visualdispersion effect, and implement a better circular-screen visual effect.An adjustment degree of a rendering element in the configurationinformation of the UI is proportional to d, to implement a bettereffect.

For example, the adjustment degree of the display element in theconfiguration information of the UI may be adjusted based on a formulaY=+(1/d) where y is the adjustment degree of the display element in theconfiguration information of the UI, d is the distance between the firstlocation and the bending axis, and a symbol “+” indicates that theadjustment direction is appropriate extrusion.

Optionally, in this embodiment of the present invention, a first mappingrelationship between a plurality of bending parameters and a pluralityof UIs may be further established, and the UI is presented based on thebending parameter and the first mapping relationship information.

For example, the first mapping relationship information includes acorrespondence between a plurality of bending direction parameters and aplurality of UIs, and the UI is presented based on the bending directionparameter and the first mapping relationship.

More specifically, for example, a first UI is presented in a firstbending direction, and a second UI is presented in a second bendingdirection.

To be specific, if the user performs the physical operation of bendingthe flexible display towards the display surface, that is, the flexibledisplay presents the first UI, a display element in the first UI isappropriately dispersed. If the user performs a physical operation ofbending the flexible display towards the non-display surface, that is,the flexible display presents the second UI, a display element in thesecond UI is appropriately converged. However, from the perspective ofthe user, even if the user performs the physical operation of bendingthe flexible display, the user obtains a natural visual effectregardless of a display location at which the user looks.

It should be understood that application of intelligently adjusting a UIlayout and a visual effect is merely an example description. In theterminal device control method in this embodiment of the presentinvention, other information in the configuration information of the UImay be further adjusted based on the bending parameter. This is notspecifically limited in this embodiment of the present invention.

In another embodiment, the terminal device may associate the bendingparameter with an application command. To be specific, the terminaldevice may generate, based on the bending parameter, the commandcorresponding to the first application.

Optionally, before the command corresponding to the first application isgenerated based on the bending parameter, the bending parameter is sentto at least one application, where the at least one application includesthe first application; and the command corresponding to the firstapplication is generated based on the bending parameter and a secondmapping relationship.

Specifically, the terminal device sends the bending parameter to the atleast one application. When the first application in the at least oneapplication receives the bending parameter, the first application cangenerate a specific operation command based on the second mappingrelationship. In other words, in this embodiment of the presentinvention, the bending behavior of the user is associated with theoperation command of the application.

Optionally, the second mapping relationship includes a correspondencebetween a plurality of bending parameters and a plurality ofapplications, and a triggering command of the first application isgenerated based on the bending parameter and the second mappingrelationship information.

For example, the first application is triggered at a first bendinglocation, and a second application is triggered at a second bendinglocation.

From the perspective of the user, the terminal device may generate acorresponding specific command based on the bending location parameterof the flexible display. For example, it is assumed that the userperforms the physical operation of bending the flexible display towardsthe display surface, or performs the physical operation of bending theflexible display towards the non-display surface. If the terminal devicedetects that a location indicated by the bending location parameter is alocation of a WeChat icon, a WeChat application is started. If theterminal device detects that the location indicated by the bendinglocation parameter is a location of a QQ icon, a QQ application isstarted.

Optionally, the second mapping relationship includes a correspondencebetween a plurality of bending parameters and a plurality of commands ofthe first application, and a first command corresponding to the firstapplication is generated based on the bending parameter and the secondmapping relationship information.

In other words, different bending parameters may be corresponding todifferent operation commands of a same application.

Optionally, the bending parameter is sent to at least one application,and the at least one application includes the first application, so thatthe first application generates, based on the bending parameter, thecommand corresponding to the first application.

From the perspective of the user, the terminal device may generate acorresponding specific command based on the bending parameter of theflexible display. For example, it is assumed that the user performs thephysical operation of bending the flexible display towards the displaysurface, or performs the physical operation of bending the flexibledisplay towards the non-display surface.

If a degree of user's force is less than a first threshold, and adetected bending degree parameter is less than 20, the first applicationis started. If the degree of user's force is greater than the firstthreshold and less than a second threshold, and the detected bendingdegree parameter is greater than 20 and less than 30, an applicationintroduction interface of the first application is started. The secondthreshold is greater than the first threshold. If the degree of user'sforce is greater than the second threshold, and the detected bendingdegree parameter is greater than 30, an exit command of the firstapplication is started.

For example, the first application is a game application. The terminaldevice may define an elastic input event for a game based on the bendingparameter, to improve interest of the game and the application. Forexample, an elastic behavior of the flexible display may be used toexecute a slingshot behavior of the Angry Birds.

Specifically, the bending degree parameter may be directly used as abending degree parameter of a slingshot.

It should be understood that the first application in this embodiment ofthe present invention may be a game, or may be any other applicationthat is configured with a human computer interaction function related tothe flexible display. In other words, the first application may be anyapplication that has a human computer interaction event of the flexibledisplay. This is not specifically limited in this embodiment of thepresent invention. In addition, for ease of description, the humancomputer interaction event of the flexible display is referred to as ahuman computer interaction event for short below.

An embodiment of the present invention provides a new method that is fora human computer interaction event and that is defined based on abending behavior of a flexible display, to bring a new operation mannerto an application and a game. In addition, a display layout may be moreintelligently adjusted by using the behavior, to implement a bettervisual effect.

FIG. 3 is a schematic flowchart of a terminal device control method 200according to an embodiment of the present invention.

210. Register a bending behavior event.

Specifically, an application in a terminal device is registered by usingan interface or a method that is for registering a human computerinteraction event and that is provided by a system, so that a subsequenthuman computer interaction event sent by the system may be listened to.

220. Listen to a human computer interaction event.

Specifically, an application that has a human computer interactionfunction in the terminal device is equipped with a bending behaviorlistener. The bending behavior listener always listens to a system eventthat includes a human computer interaction event. After an event ofF=FLEXURAL_EVENT is detected through listening, a bending parameterexisting when a bending behavior of a flexible display occurs isobtained through parsing.

230. Determine a bending parameter when a bending behavior occurs.

Specifically, a user bends the terminal device of the flexible display.To avoid repetition, details are not described herein again.

240. Generate the human computer interaction event based on the bendingparameter.

Specifically, after the physical bending behavior of the flexibledisplay is converted into a digital parameter, a format conversion isfurther performed, to be specific, the bending parameter is convertedinto a parameter in a data format of the human computer interactionevent. Optionally, the following format is used:

[Event flag type F: Parameter P]

The event flag type F represents a flag for differentiating the eventfrom another event (for example, a touch event, or an incoming callevent) of the system. The flag is a system-level flag. For anyapplication that obtains an event sent by the system, the applicationmay determine, by using the event flag type F, whether the event is thehuman computer interaction event of the flexible display. In thisembodiment of the present invention. F=FLEXURAL_EVENT is used as anexample for description. Definition of the flag is not limited to thisname. The parameter P represents a parameter carried in the humancomputer interaction event, and is a data structure.

For example, the parameter P may specifically include the followinginformation:

[A quantity N of bending behaviors,

a bending behavior ID1, a time at which the bending behavior 1 occurs, abending axis location of the bending behavior 1, a bending degree of thebending behavior 1, and information about another extension standbyfield of the bending behavior 1;

a bending behavior ID2, a time at which the bending behavior 2 occurs, abending axis location of the bending behavior 2, a bending degree of thebending behavior 2, and information about another extension standbyfield of the bending behavior 2;

. . .

a bending behavior IDN, a time at which the bending behavior N occurs, abending axis location of the bending behavior N, a bending degree of thebending behavior N, and information about another extension standbyfield of the bending behavior N.]

The quantity N of bending behaviors indicates a quantity of bendingbehaviors on the flexible display in a current state. Each bendingbehavior includes information such as an ID of the bending behavior, atime at which the bending behavior occurs, a location of the bendingbehavior, and a degree of the bending behavior. The field “informationabout another extension standby field of a bending behavior i” is anextension field, which allows the system to retain an extensioncapability. A plurality of extension fields may be set for technologyevolution.

It should be understood that the data format and the parameter P of thehuman computer interaction event are merely examples. This is notspecifically limited in this embodiment of the present invention.

250. Add a human computer interaction event to a system event or amessage queue.

Specifically, after the human computer interaction event is generated,the terminal device adds the human computer interaction event to thesystem message queue, so that the human computer interaction event joinsthe message sending queue. Optionally, the queue complies with anoriginal priority or queuing rule of the system.

260. Send the system event or the message queue to at least oneapplication.

Specifically, when it is the turn of the human computer interactionevent to be sent in the queue, the human computer interaction event maybe sent by using a system event sending mechanism. Optionally, the humancomputer interaction event is sent in a broadcast manner. Specifically,the terminal device searches for all applications registered forlistening to a human computer interaction event, and broadcasts thehuman computer interaction event (including a parameter) to theapplications.

270. Generate, based on the human computer interaction event, a commandcorresponding to a first application.

Specifically, after data is obtained through parsing, the applicationprocesses the data based on a requirement of the application. To avoidrepetition, details are not described herein again.

The following describes the terminal device in the embodiments of thepresent invention with reference to FIG. 4 and FIG. 5.

FIG. 4 is a schematic block diagram of a terminal device 300 accordingto an embodiment of the present invention.

As shown in FIG. 4, the terminal device 300 includes:

a determining unit 310, configured to: when a bending behavior of aflexible display occurs, determine a bending parameter of the flexibledisplay, where the bending parameter includes at least one of a bendingtime parameter, a bending location parameter, a bending directionparameter, and a bending degree parameter, the bending time parameter isused to indicate a time at which the bending behavior of the flexibledisplay occurs, the bending location parameter is used to indicate alocation at which the bending behavior of the flexible display occurs,the bending direction parameter is used to indicate a direction in whichthe bending behavior of the flexible display occurs, and the bendingdegree parameter is used to indicate a degree of the bending behavior ofthe flexible display; and

a processing unit 320, configured to: adjust a user interface (UI) ofthe flexible display based on the bending parameter, or generate, basedon the bending parameter, a command corresponding to a firstapplication.

Optionally, the processing unit 320 is specifically configured to:

if it is determined, based on the bending parameter, that a UI at afirst location of the flexible display is in an extruded state or in astretched state, adjust configuration information of the UI at the firstlocation based on a distance parameter, where the distance parameterindicates a distance between the first location and the bending locationof the flexible display.

Optionally, the processing unit 320 is specifically configured to:

present the UI based on the bending parameter and first mappingrelationship information, where the first mapping relationshipinformation includes a correspondence between a plurality of bendingparameters and a plurality of UIs.

Optionally, the first mapping relationship information includes acorrespondence between a plurality of bending direction parameters and aplurality of UIs, and the processing unit 320 is specifically configuredto:

present the UI based on the bending direction parameter and the firstmapping relationship.

Optionally, the terminal device further includes:

a transceiver unit, configured to: before the processing unit 320generates, based on the bending parameter, the command corresponding tothe first application, send the bending parameter to at least oneapplication. The at least one application includes the firstapplication. The processing unit 320 is specifically configured to:

generate, based on the bending parameter and a second mappingrelationship, the command corresponding to the first application.

Optionally, the second mapping relationship includes a correspondencebetween a plurality of bending parameters and a plurality ofapplications, and the processing unit 320 is specifically configured to:

generate a triggering command of the first application based on thebending parameter and the second mapping relationship information.

Optionally, the second mapping relationship includes a correspondencebetween a plurality of bending parameters and a plurality of commands ofthe first application, and the processing unit 320 is specificallyconfigured to:

generate, based on the bending parameter and the second mappingrelationship information, a first command corresponding to the firstapplication.

Optionally, the transceiver unit is further configured to:

before the determining unit 310 determines the bending parameter of theflexible display, obtain force distribution information of the flexibledisplay and/or capacitance distribution information of the flexibledisplay. The determining unit 310 is specifically configured to:

determine the bending parameter based on the force distributioninformation and/or the capacitance distribution information.

Optionally, the determining unit 310 is specifically configured to:

measure a relative location between a first rigid display and a secondrigid display by using a first sensor, where the flexible display islocated between the first rigid display and the second rigid display,and hardness of each rigid display is greater than hardness of theflexible display; and determine the bending parameter based on therelative location.

Optionally, the determining unit 310 is specifically configured to:determine force distribution information of the flexible display, anddetermine the bending parameter based on the force distributioninformation.

Optionally, the determining unit 310 is specifically configured to:determine the force distribution information by measuring a physicalcircuit of the flexible display, or determine the force distributioninformation by using a force sensor.

Optionally, the determining unit 310 is specifically configured to:determine capacitance distribution information of the flexible display,and determine the bending parameter based on the capacitancedistribution information.

Optionally, the determining unit 310 is specifically configured todetermine the capacitance value distribution information by using acapacitor.

Optionally, the first sensor is an optical sensor, or the first sensoris a distance sensor.

It should be noted that, in this embodiment of the present invention,both the determining unit 310 and the processing unit 320 may beimplemented by a processor.

As shown in FIG. 5, an apparatus 40) may include a processor 410, atransceiver 420, and a memory 430. The memory 430 may be configured tostore indication information, and may be further configured to storecode, an instruction, and the like that are executed by the processor410. All components of the apparatus 400 are connected by using a bussystem. In addition to a data bus, the bus system further includes apower bus, a control bus, and a status signal bus.

Specifically, the processor 410 is configured to:

when a bending behavior of a flexible display occurs, determine abending parameter of the flexible display, where the bending parameterincludes at least one of a bending time parameter, a bending locationparameter, a bending direction parameter, and a bending degreeparameter, the bending time parameter is used to indicate a time atwhich the bending behavior of the flexible display occurs, the bendinglocation parameter is used to indicate a location at which the bendingbehavior of the flexible display occurs, the bending direction parameteris used to indicate a direction in which the bending behavior of theflexible display occurs, and the bending degree parameter is used toindicate a degree of the bending behavior of the flexible display; andadjust a user interface (UI) of the flexible display based on thebending parameter, or generate, based on the bending parameter, acommand corresponding to a first application.

Optionally, the processor 410 is specifically configured to:

if it is determined, based on the bending parameter, that a UI at afirst location of the flexible display is in an extruded state or in astretched state, adjust configuration information of the UI at the firstlocation based on a distance parameter, where the distance parameterindicates a distance between the first location and the bending locationof the flexible display.

Optionally, the processor 410 is specifically configured to:

present the UI based on the bending parameter and first mappingrelationship information, where the first mapping relationshipinformation includes a correspondence between a plurality of bendingparameters and a plurality of UIs.

Optionally, the first mapping relationship information includes acorrespondence between a plurality of bending direction parameters and aplurality of UIs, and the processor 410 is specifically configured to:

present the UI based on the bending direction parameter and the firstmapping relationship.

Optionally, the terminal device further includes:

the transceiver 420, configured to: before the processor 410 generates,based on the bending parameter, the command corresponding to the firstapplication, send the bending parameter to at least one application. Theat least one application includes the first application. The processor410 is specifically configured to:

generate, based on the bending parameter and a second mappingrelationship, the command corresponding to the first application.

Optionally, the second mapping relationship includes a correspondencebetween a plurality of bending parameters and a plurality ofapplications, and the processor 410 is specifically configured to:

generate a triggering command of the first application based on thebending parameter and the second mapping relationship information.

Optionally, the second mapping relationship includes a correspondencebetween a plurality of bending parameters and a plurality of commands ofthe first application, and the processor 410 is specifically configuredto:

generate, based on the bending parameter and the second mappingrelationship information, a first command corresponding to the firstapplication.

Optionally, the transceiver 420 is further configured to:

before the processor 410 determines the bending parameter of theflexible display, obtain force distribution information of the flexibledisplay and/or capacitance distribution information of the flexibledisplay. The processor 410 is specifically configured to:

determine the bending parameter based on the force distributioninformation and/or the capacitance distribution information.

Optionally, the processor 410 is specifically configured to:

measure a relative location between a first rigid display and a secondrigid display by using a first sensor, where the flexible display islocated between the first rigid display and the second rigid display,and hardness of each rigid display is greater than hardness of theflexible display; and determine the bending parameter based on therelative location.

The apparatus 400 shown in FIG. 5 can implement processes in theforegoing method embodiments of FIG. 1 and FIG. 3. To avoid repetition,details are not described herein again.

Persons of ordinary skill in the art may be aware that, the units andalgorithm steps in the examples described with reference to theembodiments disclosed in this specification may be implemented byelectronic hardware or a combination of computer software and electronichardware. Whether the functions are performed by hardware or softwaredepends on particular applications and design constraint conditions ofthe technical solutions. Persons skilled in the art may use differentmethods to implement the described functions for each particularapplication, but it should not be considered that the implementationgoes beyond the scope of the embodiments of the present invention.

It may be clearly understood by persons skilled in the art that, for thepurpose of convenient and brief description, for a detailed workingprocess of the system, apparatus, and unit, refer to a correspondingprocess in the method embodiments. Details are not described hereinagain.

In the several embodiments provided in this application, it should beunderstood that the disclosed system, apparatus, and method may beimplemented in other manners. For example, the described apparatusembodiment is merely an example. For example, the unit division ismerely logical function division and may be other division in actualimplementation. For example, a plurality of units or components may becombined or integrated into another system, or some features may beignored or not performed. In addition, the displayed or discussed mutualcouplings or direct couplings or communication connections may beimplemented by using some interfaces. The indirect couplings orcommunication connections between the apparatuses or units may beimplemented in electronic, mechanical, or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may or may not be physical units,may be located in one position, or may be distributed on a plurality ofnetwork units. Some or all of the units may be selected according toactual needs to achieve the objectives of the embodiments of the presentinvention.

In addition, each of the function units in embodiments of the presentinvention may be integrated into a processing unit, or may exist alonephysically, or two or more units are integrated into a unit.

When the functions are implemented in a form of a software functionalunit and sold or used as an independent product, the functions may bestored in a computer-readable storage medium. Based on such anunderstanding, the technical solutions in the embodiments of the presentinvention essentially, or the part contributing to the prior art, orsome of the technical solutions may be implemented in a form of asoftware product. The software product is stored in a storage medium,and includes several instructions for instructing a computer device(which may be a personal computer, a server, a network device, or thelike) to perform all or some of the steps of the methods described inthe embodiments of the present invention. The storage medium includesany medium that can store program code, such as a USB flash drive, aremovable hard disk, a read-only memory (Read-Only Memory, ROM), arandom access memory (Random Access Memory, RAM), a magnetic disk, or anoptical disc.

The foregoing descriptions are merely specific implementations of thepresent invention, but are not intended to limit the protection scope ofthe present invention. Any variation or replacement readily figured outby persons skilled in the art within the technical scope disclosed inthe present invention shall fall within the protection scope of thepresent invention. Therefore, the protection scope of the presentinvention shall be subject to the protection scope of the claims.

What is claimed is:
 1. A terminal device control method, wherein aterminal device is equipped with a flexible display, and the methodcomprises: displaying, by a system of the terminal device, a userinterface (UI) of a first application on the flexible display;obtaining, by the system of the terminal device, a bending parameter ofthe flexible display when a bending behavior of the flexible displayoccurs, wherein the bending parameter comprises a bending locationparameter, wherein: the bending location parameter indicates a bendinglocation at which the bending behavior of the flexible display occurs;sending, by the system of the terminal device, the bending parameter tothe first application; receiving, by the system of the terminal device,an adjusted UI of the first application from the first application,wherein the adjusted UI of the first application is obtained by thefirst application based on the UI and the bending parameter; anddisplaying, by the system of the terminal device, the adjusted UI of thefirst application on the flexible display.
 2. The method according toclaim 1, wherein the method further comprises: obtaining, by the firstapplication, the adjusted UI based on the UI and the bending parameter;the obtaining, by the first application, the adjusted UI based on the UIand the bending parameter comprises: if it is determined, based on thebending parameter, that a UI element at a first location of the flexibledisplay is in an extruded state or in a stretched state, adjustingconfiguration information of the UI element at the first location basedon a distance parameter, wherein the distance parameter indicates adistance between the first location and the bending location of theflexible display.
 3. The method according to claim 1, wherein the methodfurther comprises: obtaining, by the first application, the adjusted UIbased on the UI and the bending parameter; and the obtaining, by thefirst application, the adjusted UI based on the UI and the bendingparameter, comprises: obtaining, by the first application, the adjustedUI based on the bending parameter and first mapping relationshipinformation, wherein the first mapping relationship informationcomprises a correspondence between a plurality of bending parameters anda plurality of UIs.
 4. The method according to claim 1, wherein beforeobtaining the bending parameter of the flexible display, the methodfurther comprises: obtaining force distribution information of theflexible display and/or capacitance distribution information of theflexible display; and, wherein obtaining the bending parameter of theflexible display comprises: determining the bending parameter based onthe force distribution information and/or the capacitance distributioninformation.
 5. The method according to claim 1, wherein obtaining thebending parameter of the flexible display comprises: measuring arelative location between a first rigid display and a second rigiddisplay by using a first sensor, wherein the flexible display is locatedbetween the first rigid display and the second rigid display, andhardness of each rigid display is greater than hardness of the flexibledisplay; and determining the bending parameter based on the relativelocation.
 6. The method according to claim 1, wherein the UI on whichthe adjusting is performed spans the bending location, and/or theadjusted UI spans the bending location.
 7. The method according to claim1, the bending location parameter comprises coordinates of the bendinglocation.
 8. The method according to claim 1, wherein the adjusted UI ofthe first application is obtained by the first application based on theUI and a relative location relationship between a display element in theUI and the bending location indicated by the bending location parameter.9. A terminal device, wherein the terminal device is equipped with aflexible display, and the terminal device comprises: a non-transitorycomputer readable medium which contains computer-executableinstructions; a processor, wherein the processor is configured toexecute the computer-executable instructions to enable a system of theterminal device to: display a user interface (UI) of a first applicationon the flexible display; obtain a bending parameter of the flexibledisplay when a bending behavior of the flexible display occurs, whereinthe bending parameter comprises a bending location parameter, wherein:the bending location parameter indicates a bending location at which thebending behavior of the flexible display occurs; send the bendingparameter to the first application; receive an adjusted UI of the firstapplication from the first application, wherein the adjusted UI of thefirst application is obtained by the first application based on the UIand the bending parameter; and display the adjusted UI of the firstapplication on the flexible display.
 10. The terminal device accordingto claim 9, wherein the processor is configured to execute thecomputer-executable instructions to enable the first application of theterminal device to: if it is determined, based on the bending parameter,that a UI element at a first location of the flexible display is in anextruded state or in a stretched state, adjust configuration informationof the UI element at the first location based on a distance parameter,wherein the distance parameter indicates a distance between the firstlocation and the bending location of the flexible display.
 11. Theterminal device according to claim 9, wherein the processor isconfigured to execute the computer-executable instructions to enable thefirst application of the terminal device to: obtain the UI based on thebending parameter and first mapping relationship information, whereinthe first mapping relationship information comprises a correspondencebetween a plurality of bending parameters and a plurality of UIs. 12.The terminal device according to claim 9, wherein the processor isconfigured to: obtain force distribution information of the flexibledisplay and/or capacitance distribution information of the flexibledisplay; and determine the bending parameter based on the forcedistribution information and/or the capacitance distributioninformation.
 13. The terminal device according to claim 9, wherein theprocessor is configured to: measure a relative location between a firstrigid display and a second rigid display by using a first sensor,wherein the flexible display is located between the first rigid displayand the second rigid display, and hardness of each rigid display isgreater than hardness of the flexible display; and determine the bendingparameter based on the relative location.
 14. A terminal device method,wherein a terminal device is equipped with a flexible display, and themethod comprises: displaying a user interface (UI) of one application onthe flexible display; obtaining a bending parameter of the flexibledisplay when a bending behavior of the flexible display occurs, whereinthe bending parameter comprises a bending location parameter and thebending location parameter indicates a bending location at which thebending behavior of the flexible display occurs; and adjusting the UIbased on a relative location relationship between a display element inthe UI and the bending location indicated by the bending locationparameter, or generating, based on the bending parameter and a secondmapping relationship, a command corresponding to the one application.15. The method according to claim 14, wherein the second mappingrelationship comprises a correspondence between a plurality of bendingparameters and a plurality of applications; and, wherein generating,based on the bending parameter and a second mapping relationship, thecommand corresponding to the first application comprises: generating atriggering command of the first application based on the bendingparameter and the second mapping relationship information.
 16. Themethod according to claim 14, wherein the second mapping relationshipcomprises a correspondence between a plurality of bending parameters anda plurality of commands of the first application; and, whereingenerating, based on the bending parameter, the command corresponding tothe first application comprises: generating, based on the bendingparameter and the second mapping relationship information, a firstcommand corresponding to the first application.
 17. A terminal device,wherein the terminal device is equipped with a flexible display, and theterminal device comprises: a processor, wherein the processor isconfigured to: display a user interface (UI) of one application on theflexible display; obtain a bending parameter of the flexible displaywhen a bending behavior of the flexible display occurs, wherein thebending parameter comprises a bending location parameter, and thebending location parameter indicates a bending location at which thebending behavior of the flexible display occurs; and adjust the UI basedon a relative location relationship between a display element in the UIand the bending location indicated by the bending location parameter, orgenerating, based on the bending parameter and a second mappingrelationship, a command corresponding to the one application.
 18. Theterminal device according to claim 17, wherein the second mappingrelationship comprises a correspondence between a plurality of bendingparameters and a plurality of applications; and the processor isconfigured to: generate a triggering command of the first applicationbased on the bending parameter and the second mapping relationshipinformation.
 19. The terminal device according to claim 17, wherein thesecond mapping relationship comprises a correspondence between aplurality of bending parameters and a plurality of commands of the firstapplication; and the processor is configured to: generate, based on thebending parameter and the second mapping relationship information, afirst command corresponding to the first application.
 20. A terminaldevice method, wherein a terminal device is equipped with a flexibledisplay, and the method comprises: displaying a user interface (UI) ofone application on the flexible display; obtaining a bending parameterof the flexible display when a bending behavior of the flexible displayoccurs, wherein the bending parameter comprises a bending locationparameter, and the bending location parameter indicates a bendinglocation at which the bending behavior of the flexible display occurs;and adjusting the UI based on the bending location parameter to displayan adjusted UI.
 21. A terminal device, wherein the terminal device isequipped with a flexible display, and the terminal device comprises: aprocessor, wherein the processor is configured to: display a userinterface (UI) of one application on the flexible display; obtain abending parameter of the flexible display when a bending behavior of theflexible display occurs, wherein the bending parameter comprises abending location parameter, and the bending location parameter indicatesa bending location at which the bending behavior of the flexible displayoccurs; and adjust the UI based on the bending location parameter todisplay an adjusted UI.